package buzhidao;
import java.util.Scanner;

public class zifushu {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        
        System.out.print("请输入一个字符串: ");
        String input = scanner.nextLine();
        
        int lowerCaseCount = 0;
        int upperCaseCount = 0;
        int numberCount = 0;
        int otherCount=0;
        
        for (int i = 0; i < input.length(); i++) {
            char c = input.charAt(i);
            if (Character.isLowerCase(c)) {
                lowerCaseCount++;
            } else if (Character.isUpperCase(c)) {
                upperCaseCount++;
            } else if (Character.isEmoji(c)) {
                numberCount++;
            }
            else{
                otherCount++;
            }
        }
        
        System.out.println("小写字母个数: " + lowerCaseCount);
        System.out.println("大写字母个数: " + upperCaseCount);
        System.out.println("数字字符个数: " + numberCount);
        System.out.println("其他字符个数："+otherCount);
        scanner.close();
    }
}